from django.db import models

# Create your models here.

class Personinfo(models.Model):
    name=models.CharField(max_length=50,verbose_name='姓名')
    gender=models.CharField(max_length=10,verbose_name='性别',null=True)
    certid=models.CharField(max_length=50,verbose_name='身份证号码',null=True)
    address=models.CharField(max_length=100,verbose_name='地址',null=True)
    mobile=models.CharField(max_length=30,verbose_name='电话号码',null=True)
    date=models.CharField(max_length=50,verbose_name='日期',null=True)
    email=models.CharField(max_length=50,verbose_name='邮箱',null=True)
    oldid=models.IntegerField(verbose_name='原id',null=True)
    class Meta:
        db_table='leakinfo'
        verbose_name='身份泄露查询'

    def __str__(self):
        return self.name

